package com.bjl.dao.imp;

import com.bjl.dao.LotteryDao;
import org.springframework.stereotype.Repository;
import orm.base.BasePageInfo;
import orm.base.Ex.BaseDaoEx;

import java.util.Map;

/**
 * Created by ashin on 2017/12/8.
 */
@Repository
public class LotteryDaoImp extends BaseDaoEx implements LotteryDao {
    @Override
    protected void init() {
        super.init(this);
    }

    @Override
    public int getLotteryCount(Map map) throws Exception {
        return this.get("getLotteryCount",map);
    }

    @Override
    public BasePageInfo<Map> queryPastLotteryInfo(Map map) throws Exception {
        return this.pageQuery("queryPastLotteryInfo",map);
    }

    @Override
    public int validateAllisWin(Map map) throws Exception {
        return this.update("validateAllisWin",map);
    }

    @Override
    public Map getOpenTime(Map map) throws Exception {
        return this.get("getOpenTime",map);
    }

    @Override
    public String getFirstOpenTime(Map map) throws Exception {
        return this.get("getFirstOpenTime",map);
    }
}
